﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using ConsoleApplication27;

namespace WpfApplication11
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class Window1 : Window
    {
        public Window1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            Liczba a = new Liczba(textBox1.Text,10 );
            Liczba x = Pomoce.do10(a.element, new Liczba(textBox2.Text, 10));
            List<Liczba> wynik=Pomoce.konwersja(x, new Liczba(textBox4.Text, 10));
            wynik.Reverse();
            StringBuilder build = new StringBuilder();
            foreach (Liczba l in wynik)
            {
                
                build.Append(l.ToString2()+" ");

            }

            textBox3.Text = build.ToString();
           
         
            
            

           
        }
    }
}
